package cn.com.cabinet.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.cabinet.web.entity.Diauthority;

public interface DiauthorityDao extends JpaRepository<Diauthority, Long>,JpaSpecificationExecutor<Diauthority>{

	@Query("select d from Diauthority d where d.userId=?1")
	public Diauthority getDauthorityByUserId(Long userid);
	
}
